package com.yllt4cloud.shangmi.biz.config;

import com.yllt4cloud.common.ddbase.param.jsonparam.impl.RequestJsonParamMethodArgumentResolver;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import java.util.List;

/**
 * @description:
 * @author: yaoxj
 * @create: 2019-12-23 15:45
 **/
@Configuration
public class MvcConfig implements WebMvcConfigurer {
    @Override
    public void addArgumentResolvers(List<HandlerMethodArgumentResolver> resolvers) {
        resolvers.add(new RequestJsonParamMethodArgumentResolver());
    }
}
